<?php

    if (session_id() == '')
    {
        session_start();
    }
    include_once $_SERVER['DOCUMENT_ROOT'].'HelmesWorkTest/frontend/controller/ViewManager.php';
    include_once $_SERVER['DOCUMENT_ROOT'].'HelmesWorkTest/frontend/controller/menucontrollers/PersonSectorInvolvementMenuController.php';

    $frontController = new FrontController();
    $frontController->main();
    
    if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > 1800)) 
    {
        // last request was more than 30 minutes ago
        session_unset();     // unset $_SESSION variable for the run-time 
        session_destroy();   // destroy session data in storage
    }
    
    $_SESSION['LAST_ACTIVITY'] = time(); // update last activity time stamp
?>